import * as types from './mutation-types'

const mutations = {
  [types.SET_IS_NAVIGATION] (state, isNavigation) {
    state.isNavigation = isNavigation
  },
  [types.SET_NAVIGATION_INDEX] (state, navigationIndex) {
    state.navigationIndex = navigationIndex
  },
  [types.SET_SESSION_APP_KEY] (state, sessionAppKey) {
    state.sessionAppKey = sessionAppKey
  },
  [types.SET_AVATAR] (state, avatar) {
    state.avatar = avatar
  },
  [types.SET_MOBILE] (state, mobile) {
    state.mobile = mobile
  },
  [types.SET_REAL_NAME_INFO] (state, realNameInfo) {
    state.realNameInfo = realNameInfo
  },
  [types.SET_ADDRESS] (state, address) {
    state.address = address
  },
  [types.SET_CART_NUM] (state, cartNum) {
    state.cartNum = cartNum
  },
  [types.SET_XFB_INFO] (state, XFBInfo) {
    state.XFBInfo = XFBInfo
  },
  [types.SET_IS_NEW_COUPON] (state, isNewCoupon) {
    state.isNewCoupon = isNewCoupon
  },
  [types.SET_IS_NEW_MESSAGE] (state, isNewMessage) {
    state.isNewMessage = isNewMessage
  },
  [types.SET_SEARCH_HISTORY] (state, searchHistory) {
    state.searchHistory = searchHistory
  }
}

export default mutations
